<?php

namespace App\Http\Controllers;

use App\Datatables;
use Illuminate\Http\Request;

class ApplyController extends Controller
{
    /**
     * constructor.
     */
    public function __construct()
    {
        $this->middleware('auth');
    }


    public function applyVip(Request $request)
    {
        if ($request->isMethod('post')) {
            return response()->json(Datatables::ApplyVip());
        }

        return view('apply.applyVip');
    }

    public function applyTry(Request $request)
    {
        if ($request->isMethod('post')) {
            return response()->json(Datatables::ApplyTry());
        }

        return view('apply.applyTry');
    }

    public function baseApplyVip(Request $request)
    {
        if ($request->isMethod('post')) {
            return response()->json(Datatables::BaseApplyVip());
        }

        return view('apply.baseApplyVip');
    }
}
